package eg.backend.domain;

import javax.persistence.MappedSuperclass;

@MappedSuperclass
public class TagInfo {
	private String usedBy;
	
	private int usedTimes = 1;

	public String getUsedBy() {
		return usedBy;
	}

	public void setUsedBy(String usedBy) {
		this.usedBy = usedBy;
	}

	public int getUsedTimes() {
		return usedTimes;
	}

	public void setUsedTimes(int usedTimes) {
		this.usedTimes = usedTimes;
	}	
	
	public void incrementUsedTimes() {
		this.usedTimes++;
	}
	
	public void decreaseUsedTimes() {
		this.usedTimes--;
	}
	
}
